package com.lh.api.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lh.api.vo.ColumnVo;
import com.lh.api.vo.SearchVo;
import com.lh.common.entity.admin.Column;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author Xyw
 * @ClassName: ColumnMapper
 * @Description: (类作用)
 * @date: 2020-06-29 10:58
 */
@Mapper
public interface ColumnMapper extends BaseMapper<Column> {

    List<ColumnVo> columnList();

    List<SearchVo> activityShopList(Long cid, String qureyTime, String sortName, String sortOrder);

    List<SearchVo> categoryShopList(Long cid, String qureyTime, String sortName, String sortOrder);

    Column getColumnStatus(Long cid);

    Column queryColumnList(String name);

    int addColumn(Column column);

    int addColumnShopRef(@Param("id")Long id, @Param("shopId")Long[] shopId);

    int updateColumn(Column column);
}
